﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ajayumi.develop.win32.Transport.AppUpgrade.Controls
{
    public class UcFinishLatest : UcFinish
    {
        public UcFinishLatest(UcBase preControl)
            : base(preControl)
        {

        }

        internal override UcBase Next()
        {
            return new UcRestoring(this);
        }

        protected override void OnLoad(EventArgs e)
        {
            this.HideChkRunApp();
            if (Utility.HasBackup())
            {
                this.SetButtonVisible(WizardFormButtons.Restore | WizardFormButtons.Exit);
            }
            else
            { this.SetButtonVisible(WizardFormButtons.Exit); }

            this.SetFinishText("您的软件已经是最新版本");
        }

       
    }
}
